package com.b.repository;

import com.b.domain.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface UserRepository extends ElasticsearchRepository<User, Integer> {
    User findUserById(int id);
    // 添加查询方法：根据ID列表批量查询用户
    List<User> findAllByIdIn(List<Integer> ids);
}
